<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>促销筛选 - 社交商城</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #ff4d4f;
            --primary-light: #ff7a7a;
            --secondary: #1890ff;
            --success: #52c41a;
            --text-primary: #333333;
            --text-secondary: #666666;
            --text-tertiary: #999999;
            --bg-light: #f5f5f5;
            --bg-white: #ffffff;
            --border-light: #eeeeee;
            --radius: 8px;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }
        
        .nav-title {
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .nav-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 20px;
        }
        
        .nav-btn.primary {
            color: var(--primary);
        }
        
        /* 搜索栏 */
        .search-container {
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
        }
        
        .search-bar {
            position: relative;
        }
        
        .search-input {
            width: 100%;
            padding: 10px 16px 10px 40px;
            border-radius: 24px;
            border: 1px solid var(--border-light);
            background-color: var(--bg-light);
            font-size: 14px;
        }
        
        .search-input:focus {
            outline: none;
            border-color: var(--primary);
            background-color: var(--bg-white);
        }
        
        .search-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
        }
        
        /* 筛选区域 */
        .filters-container {
            background-color: var(--bg-white);
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .filter-tabs {
            display: flex;
            overflow-x: auto;
            margin-bottom: 12px;
            scrollbar-width: none;
        }
        
        .filter-tabs::-webkit-scrollbar {
            display: none;
        }
        
        .filter-tab {
            padding: 6px 16px;
            margin-right: 8px;
            border-radius: 16px;
            font-size: 14px;
            white-space: nowrap;
            background-color: var(--bg-light);
            color: var(--text-secondary);
            border: none;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .filter-tab.active {
            background-color: var(--primary);
            color: white;
        }
        
        .filter-panel {
            display: none;
            animation: fadeIn 0.3s ease;
        }
        
        .filter-panel.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 分类筛选 */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .category-item {
            padding: 10px 0;
            border-radius: var(--radius);
            background-color: var(--bg-light);
            color: var(--text-secondary);
            border: none;
            font-size: 14px;
            text-align: center;
            transition: all 0.2s ease;
        }
        
        .category-item.active {
            background-color: var(--primary);
            color: white;
        }
        
        /* 价格筛选 */
        .price-range {
            padding: 10px 0;
        }
        
        .price-slider {
            width: 100%;
            margin: 20px 0;
        }
        
        .price-values {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
        }
        
        .price-input {
            width: 80px;
            padding: 6px 8px;
            border-radius: 4px;
            border: 1px solid var(--border-light);
            text-align: center;
            font-size: 14px;
        }
        
        .price-separator {
            display: flex;
            align-items: center;
            margin: 0 10px;
            color: var(--text-tertiary);
        }
        
        /* 时间筛选 */
        .time-options {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .time-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border-radius: var(--radius);
            background-color: var(--bg-light);
        }
        
        .time-option input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }
        
        .time-option span {
            flex: 1;
            font-size: 14px;
            color: var(--text-secondary);
        }
        
        /* 促销类型筛选 */
        .promotion-types {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .type-tag {
            padding: 8px 16px;
            border-radius: 20px;
            background-color: var(--bg-light);
            color: var(--text-secondary);
            font-size: 14px;
            border: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .type-tag.active {
            background-color: rgba(255, 77, 79, 0.1);
            color: var(--primary);
            border-color: var(--primary);
        }
        
        /* 筛选按钮组 */
        .filter-actions {
            display: flex;
            gap: 10px;
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid var(--border-light);
        }
        
        .filter-btn {
            flex: 1;
            padding: 10px 0;
            border-radius: var(--radius);
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .reset-btn {
            background-color: var(--bg-light);
            color: var(--text-secondary);
            border: none;
        }
        
        .apply-btn {
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        /* 筛选结果标签 */
        .filter-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding: 8px 16px;
            background-color: var(--bg-white);
            border-bottom: 1px solid var(--border-light);
        }
        
        .filter-tag {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background-color: rgba(255, 77, 79, 0.1);
            color: var(--primary);
            border-radius: 16px;
            font-size: 13px;
        }
        
        .remove-tag {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-color: rgba(255, 77, 79, 0.2);
            color: var(--primary);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            cursor: pointer;
        }
        
        .clear-all {
            color: var(--text-tertiary);
            font-size: 13px;
            background: none;
            border: none;
            display: flex;
            align-items: center;
            gap: 4px;
            margin-left: auto;
        }
        
        /* 促销列表 */
        .promotions-container {
            padding: 8px 16px;
        }
        
        .promotion-item {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            margin-bottom: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.2s ease;
        }
        
        .promotion-item:hover {
            transform: translateY(-2px);
        }
        
        .promotion-header {
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .user-info {
            flex: 1;
        }
        
        .user-name {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 2px;
        }
        
        .post-time {
            font-size: 12px;
            color: var(--text-tertiary);
        }
        
        .promotion-content {
            padding: 12px 16px;
        }
        
        .promotion-text {
            font-size: 15px;
            line-height: 1.5;
            margin-bottom: 12px;
        }
        
        .promotion-text .highlight {
            color: var(--primary);
            font-weight: 500;
        }
        
        /* 图片容器 - 支持多种图片数量布局 */
        .images-container {
            width: 100%;
            margin-bottom: 12px;
        }
        
        .no-image {
            background-color: var(--bg-light);
            height: 180px;
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-tertiary);
        }
        
        .single-image {
            width: 100%;
            height: 240px;
            border-radius: var(--radius);
            overflow: hidden;
        }
        
        .two-images {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
            height: 200px;
        }
        
        .three-images {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
        }
        
        .three-images .image-item:nth-child(1) {
            grid-column: 1 / 2;
            grid-row: 1 / 3;
            height: 100%;
        }
        
        .three-images .image-item:nth-child(2),
        .three-images .image-item:nth-child(3) {
            grid-column: 2 / 3;
            height: calc(50% - 2px);
        }
        
        .multiple-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
        }
        
        .image-item {
            border-radius: var(--radius);
            overflow: hidden;
            position: relative;
        }
        
        .image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .image-count {
            position: absolute;
            bottom: 4px;
            right: 4px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 12px;
            padding: 2px 6px;
            border-radius: 10px;
        }
        
        /* 促销信息标签 */
        .promotion-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .promotion-tag {
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 12px;
        }
        
        .tag-discount {
            background-color: rgba(255, 77, 79, 0.1);
            color: var(--primary);
            border: 1px solid var(--primary);
        }
        
        .tag-time {
            background-color: rgba(24, 144, 255, 0.1);
            color: var(--secondary);
            border: 1px solid var(--secondary);
        }
        
        /* 倒计时 */
        .countdown {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--primary);
            font-size: 13px;
            margin-bottom: 12px;
        }
        
        .countdown-value {
            background-color: var(--primary);
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }
        
        /* 操作按钮 */
        .promotion-actions {
            display: flex;
            justify-content: space-between;
            padding: 8px 16px 12px;
            border-top: 1px solid var(--border-light);
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 14px;
            padding: 4px 12px;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            background-color: var(--bg-light);
        }
        
        .action-btn.liked {
            color: var(--primary);
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-tertiary);
            font-size: 11px;
            gap: 4px;
            text-decoration: none;
            flex: 1;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 20px;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 70px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 14px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        /* 加载更多 */
        .load-more {
            padding: 16px;
            text-align: center;
        }
        
        .load-more-btn {
            padding: 8px 24px;
            border-radius: 20px;
            background-color: var(--bg-white);
            border: 1px solid var(--border-light);
            color: var(--text-secondary);
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 0 auto;
        }
        
        .load-more-btn.loading {
            color: var(--text-tertiary);
        }
        
        .load-more-btn.loading i {
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 空状态 */
        .empty-state {
            padding: 40px 20px;
            text-align: center;
            color: var(--text-tertiary);
        }
        
        .empty-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }
        
        .empty-text {
            font-size: 16px;
            margin-bottom: 24px;
        }
        
        .empty-action {
            padding: 8px 24px;
            border-radius: 20px;
            background-color: var(--primary);
            color: white;
            border: none;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-btn" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">促销筛选</div>
        <button class="nav-btn primary" id="createBtn">
            <i class="fas fa-plus"></i>
        </button>
    </div>
    
    <!-- 搜索栏 -->
    <div class="search-container">
        <div class="search-bar">
            <i class="fas fa-search search-icon"></i>
            <input type="text" class="search-input" placeholder="搜索促销活动、优惠券、店铺名称...">
        </div>
    </div>
    
    <!-- 筛选区域 -->
    <div class="filters-container">
        <div class="filter-tabs">
            <button class="filter-tab active" data-panel="category-panel">
                <i class="fas fa-th-large"></i>
                <span>分类</span>
            </button>
            <button class="filter-tab" data-panel="price-panel">
                <i class="fas fa-tag"></i>
                <span>价格</span>
            </button>
            <button class="filter-tab" data-panel="time-panel">
                <i class="fas fa-clock"></i>
                <span>时间</span>
            </button>
            <button class="filter-tab" data-panel="type-panel">
                <i class="fas fa-tags"></i>
                <span>类型</span>
            </button>
        </div>
        
        <!-- 分类筛选面板 -->
        <div class="filter-panel active" id="category-panel">
            <div class="category-grid">
                <button class="category-item active">全部</button>
                <button class="category-item">服饰鞋包</button>
                <button class="category-item">数码电子</button>
                <button class="category-item">美妆护肤</button>
                <button class="category-item">家居生活</button>
                <button class="category-item">运动户外</button>
                <button class="category-item">食品饮料</button>
                <button class="category-item">母婴用品</button>
                <button class="category-item">图书音像</button>
                <button class="category-item">宠物用品</button>
                <button class="category-item">汽车用品</button>
                <button class="category-item">更多分类</button>
            </div>
        </div>
        
        <!-- 价格筛选面板 -->
        <div class="filter-panel" id="price-panel">
            <div class="price-range">
                <input type="range" min="0" max="1000" value="500" class="price-slider" id="priceSlider">
                <div class="d-flex justify-content-between">
                    <span>0元</span>
                    <span id="sliderValue">500元</span>
                    <span>1000元以上</span>
                </div>
                
                <div class="d-flex align-items-center mt-4">
                    <input type="number" placeholder="最低" class="price-input" id="minPrice">
                    <span class="price-separator">-</span>
                    <input type="number" placeholder="最高" class="price-input" id="maxPrice">
                </div>
            </div>
        </div>
        
        <!-- 时间筛选面板 -->
        <div class="filter-panel" id="time-panel">
            <div class="time-options">
                <label class="time-option">
                    <input type="radio" name="time-filter" value="all" checked>
                    <span>全部时间</span>
                </label>
                <label class="time-option">
                    <input type="radio" name="time-filter" value="today">
                    <span>今天</span>
                </label>
                <label class="time-option">
                    <input type="radio" name="time-filter" value="week">
                    <span>近7天</span>
                </label>
                <label class="time-option">
                    <input type="radio" name="time-filter" value="month">
                    <span>近30天</span>
                </label>
                <label class="time-option">
                    <input type="radio" name="time-filter" value="upcoming">
                    <span>即将开始</span>
                </label>
                <label class="time-option">
                    <input type="radio" name="time-filter" value="custom">
                    <span>自定义时间</span>
                </label>
            </div>
        </div>
        
        <!-- 促销类型筛选面板 -->
        <div class="filter-panel" id="type-panel">
            <div class="promotion-types">
                <button class="type-tag active">
                    <i class="fas fa-check"></i>
                    <span>全部类型</span>
                </button>
                <button class="type-tag">
                    <i class="fas fa-check"></i>
                    <span>限时折扣</span>
                </button>
                <button class="type-tag">
                    <i class="fas fa-check"></i>
                    <span>满减活动</span>
                </button>
                <button class="type-tag">
                    <i class="fas fa-check"></i>
                    <span>优惠券</span>
                </button>
                <button class="type-tag">
                    <i class="fas fa-check"></i>
                    <span>第二件半价</span>
                </button>
                <button class="type-tag">
                    <i class="fas fa-check"></i>
                    <span>买一送一</span>
                </button>
                <button class="type-tag">
                    <i class="fas fa-check"></i>
                    <span>组合优惠</span>
                </button>
                <button class="type-tag">
                    <i class="fas fa-check"></i>
                    <span>会员专享</span>
                </button>
            </div>
        </div>
        
        <!-- 筛选操作按钮 -->
        <div class="filter-actions">
            <button class="filter-btn reset-btn" id="resetFilter">重置</button>
            <button class="filter-btn apply-btn" id="applyFilter">应用筛选</button>
        </div>
    </div>
    
    <!-- 筛选结果标签 -->
    <div class="filter-tags" id="filterTags">
        <!-- 筛选标签会通过JS动态添加 -->
        <button class="clear-all" id="clearAllFilters" style="display: none;">
            <i class="fas fa-times"></i>
            <span>清除全部</span>
        </button>
    </div>
    
    <!-- 促销列表 -->
    <div class="promotions-container" id="promotionsList">
        <!-- 无图片促销 -->
        <div class="promotion-item">
            <div class="promotion-header">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/237/100/100" alt="用户头像">
                </div>
                <div class="user-info">
                    <div class="user-name">时尚服饰旗舰店</div>
                    <div class="post-time">2小时前</div>
                </div>
            </div>
            <div class="promotion-content">
                <div class="promotion-text">
                    夏季清仓大促！全场<span class="highlight">3折起</span>，更有满300减50，满500减100活动！活动仅限3天，先到先得，错过再等一年！
                </div>
                
                <div class="promotion-tags">
                    <span class="promotion-tag tag-discount">3折起</span>
                    <span class="promotion-tag tag-discount">满减</span>
                    <span class="promotion-tag tag-time">限时3天</span>
                </div>
                
                <div class="countdown">
                    <i class="far fa-clock"></i>
                    <span>剩余时间:</span>
                    <span class="countdown-value">2</span>
                    <span>天</span>
                    <span class="countdown-value">18</span>
                    <span>时</span>
                    <span class="countdown-value">45</span>
                    <span>分</span>
                </div>
            </div>
            <div class="promotion-actions">
                <button class="action-btn like-btn">
                    <i class="far fa-heart"></i>
                    <span>128</span>
                </button>
                <button class="action-btn comment-btn">
                    <i class="far fa-comment"></i>
                    <span>36</span>
                </button>
                <button class="action-btn share-btn">
                    <i class="far fa-share-alt"></i>
                    <span>分享</span>
                </button>
                <button class="action-btn save-btn">
                    <i class="far fa-bookmark"></i>
                    <span>收藏</span>
                </button>
            </div>
        </div>
        
        <!-- 单张图片促销 -->
        <div class="promotion-item">
            <div class="promotion-header">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/91/100/100" alt="用户头像">
                </div>
                <div class="user-info">
                    <div class="user-name">数码电子专营店</div>
                    <div class="post-time">昨天 15:30</div>
                </div>
            </div>
            <div class="promotion-content">
                <div class="promotion-text">
                    新款无线蓝牙耳机首发特惠，原价399元，现价<span class="highlight">299元</span>，前100名下单送原装保护套！音质超赞，续航长达24小时！
                </div>
                
                <div class="images-container">
                    <div class="single-image image-item">
                        <img src="https://picsum.photos/id/96/800/600" alt="无线蓝牙耳机">
                    </div>
                </div>
                
                <div class="promotion-tags">
                    <span class="promotion-tag tag-discount">7.5折</span>
                    <span class="promotion-tag tag-discount">新品特惠</span>
                </div>
            </div>
            <div class="promotion-actions">
                <button class="action-btn like-btn liked">
                    <i class="fas fa-heart"></i>
                    <span>356</span>
                </button>
                <button class="action-btn comment-btn">
                    <i class="far fa-comment"></i>
                    <span>89</span>
                </button>
                <button class="action-btn share-btn">
                    <i class="far fa-share-alt"></i>
                    <span>分享</span>
                </button>
                <button class="action-btn save-btn">
                    <i class="fas fa-bookmark"></i>
                    <span>收藏</span>
                </button>
            </div>
        </div>
        
        <!-- 两张图片促销 -->
        <div class="promotion-item">
            <div class="promotion-header">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/64/100/100" alt="用户头像">
                </div>
                <div class="user-info">
                    <div class="user-name">美妆护肤官方店</div>
                    <div class="post-time">3天前</div>
                </div>
            </div>
            <div class="promotion-content">
                <div class="promotion-text">
                    夏日护肤套装特惠，购买任意两件产品<span class="highlight">第二件半价</span>！防晒霜+保湿喷雾组合仅需199元，限量500套！
                </div>
                
                <div class="images-container">
                    <div class="two-images">
                        <div class="image-item">
                            <img src="https://picsum.photos/id/21/400/400" alt="防晒霜">
                        </div>
                        <div class="image-item">
                            <img src="https://picsum.photos/id/24/400/400" alt="保湿喷雾">
                        </div>
                    </div>
                </div>
                
                <div class="promotion-tags">
                    <span class="promotion-tag tag-discount">第二件半价</span>
                    <span class="promotion-tag tag-time">限量500套</span>
                </div>
                
                <div class="countdown">
                    <i class="far fa-clock"></i>
                    <span>剩余时间:</span>
                    <span class="countdown-value">0</span>
                    <span>天</span>
                    <span class="countdown-value">8</span>
                    <span>时</span>
                    <span class="countdown-value">22</span>
                    <span>分</span>
                </div>
            </div>
            <div class="promotion-actions">
                <button class="action-btn like-btn">
                    <i class="far fa-heart"></i>
                    <span>245</span>
                </button>
                <button class="action-btn comment-btn">
                    <i class="far fa-comment"></i>
                    <span>67</span>
                </button>
                <button class="action-btn share-btn">
                    <i class="far fa-share-alt"></i>
                    <span>分享</span>
                </button>
                <button class="action-btn save-btn">
                    <i class="far fa-bookmark"></i>
                    <span>收藏</span>
                </button>
            </div>
        </div>
        
        <!-- 三张图片促销 -->
        <div class="promotion-item">
            <div class="promotion-header">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/25/100/100" alt="用户头像">
                </div>
                <div class="user-info">
                    <div class="user-name">家居生活广场</div>
                    <div class="post-time">4天前</div>
                </div>
            </div>
            <div class="promotion-content">
                <div class="promotion-text">
                    家居用品大促销，全场满200减50，满500减150！精选卧室、厨房、客厅三大区域爆款产品，<span class="highlight">最低5折</span>起！
                </div>
                
                <div class="images-container">
                    <div class="three-images">
                        <div class="image-item">
                            <img src="https://picsum.photos/id/163/400/800" alt="卧室用品">
                        </div>
                        <div class="image-item">
                            <img src="https://picsum.photos/id/118/400/400" alt="厨房用品">
                        </div>
                        <div class="image-item">
                            <img src="https://picsum.photos/id/174/400/400" alt="客厅用品">
                        </div>
                    </div>
                </div>
                
                <div class="promotion-tags">
                    <span class="promotion-tag tag-discount">满减</span>
                    <span class="promotion-tag tag-discount">5折起</span>
                    <span class="promotion-tag tag-time">活动7天</span>
                </div>
            </div>
            <div class="promotion-actions">
                <button class="action-btn like-btn">
                    <i class="far fa-heart"></i>
                    <span>189</span>
                </button>
                <button class="action-btn comment-btn">
                    <i class="far fa-comment"></i>
                    <span>42</span>
                </button>
                <button class="action-btn share-btn">
                    <i class="far fa-share-alt"></i>
                    <span>分享</span>
                </button>
                <button class="action-btn save-btn">
                    <i class="fas fa-bookmark"></i>
                    <span>收藏</span>
                </button>
            </div>
        </div>
        
        <!-- 四张及以上图片促销 -->
        <div class="promotion-item">
            <div class="promotion-header">
                <div class="user-avatar">
                    <img src="https://picsum.photos/id/65/100/100" alt="用户头像">
                </div>
                <div class="user-info">
                    <div class="user-name">运动户外专营店</div>
                    <div class="post-time">1周前</div>
                </div>
            </div>
            <div class="promotion-content">
                <div class="promotion-text">
                    618年中大促提前开启！运动服装、鞋类、装备全场<span class="highlight">满300减100</span>，叠加店铺优惠券更划算！100+款商品参与活动！
                </div>
                
                <div class="images-container">
                    <div class="multiple-images">
                        <div class="image-item">
                            <img src="https://picsum.photos/id/28/300/300" alt="运动鞋">
                        </div>
                        <div class="image-item">
                            <img src="https://picsum.photos/id/29/300/300" alt="运动服">
                        </div>
                        <div class="image-item">
                            <img src="https://picsum.photos/id/30/300/300" alt="运动背包">
                            <span class="image-count">+8</span>
                        </div>
                    </div>
                </div>
                
                <div class="promotion-tags">
                    <span class="promotion-tag tag-discount">满300减100</span>
                    <span class="promotion-tag tag-discount">叠加优惠</span>
                    <span class="promotion-tag tag-time">618活动</span>
                </div>
            </div>
            <div class="promotion-actions">
                <button class="action-btn like-btn">
                    <i class="far fa-heart"></i>
                    <span>421</span>
                </button>
                <button class="action-btn comment-btn">
                    <i class="far fa-comment"></i>
                    <span>103</span>
                </button>
                <button class="action-btn share-btn">
                    <i class="far fa-share-alt"></i>
                    <span>分享</span>
                </button>
                <button class="action-btn save-btn">
                    <i class="far fa-bookmark"></i>
                    <span>收藏</span>
                </button>
            </div>
        </div>
    </div>
    
    <!-- 加载更多 -->
    <div class="load-more">
        <button class="load-more-btn" id="loadMoreBtn">
            <span>加载更多</span>
            <i class="fas fa-chevron-down"></i>
        </button>
    </div>
    
    <!-- 提示消息 -->
    <div class="toast" id="toast"></div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item active">
            <i class="fas fa-tag nav-icon"></i>
            <span>促销</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-shopping-cart nav-icon"></i>
            <span>购物车</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user nav-icon"></i>
            <span>我的</span>
        </a>
    </div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // DOM元素
        const backBtn = document.getElementById('backBtn');
        const createBtn = document.getElementById('createBtn');
        const filterTabs = document.querySelectorAll('.filter-tab');
        const filterPanels = document.querySelectorAll('.filter-panel');
        const categoryItems = document.querySelectorAll('.category-item');
        const typeTags = document.querySelectorAll('.type-tag');
        const priceSlider = document.getElementById('priceSlider');
        const sliderValue = document.getElementById('sliderValue');
        const minPrice = document.getElementById('minPrice');
        const maxPrice = document.getElementById('maxPrice');
        const resetFilterBtn = document.getElementById('resetFilter');
        const applyFilterBtn = document.getElementById('applyFilter');
        const filterTagsContainer = document.getElementById('filterTags');
        const clearAllFiltersBtn = document.getElementById('clearAllFilters');
        const promotionsList = document.getElementById('promotionsList');
        const loadMoreBtn = document.getElementById('loadMoreBtn');
        const toast = document.getElementById('toast');
        
        // 存储当前筛选条件
        let currentFilters = {
            category: '全部',
            priceRange: { min: 0, max: 1000 },
            time: 'all',
            types: ['全部类型']
        };
        
        // 返回按钮
        backBtn.addEventListener('click', () => {
            history.back();
        });
        
        // 创建按钮
        createBtn.addEventListener('click', () => {
            showToast('创建促销活动');
        });
        
        // 切换筛选面板
        filterTabs.forEach(tab => {
            tab.addEventListener('click', () => {
                // 切换标签激活状态
                filterTabs.forEach(t => t.classList.remove('active'));
                tab.classList.add('active');
                
                // 切换面板显示
                const panelId = tab.getAttribute('data-panel');
                filterPanels.forEach(panel => {
                    panel.classList.remove('active');
                });
                document.getElementById(panelId).classList.add('active');
            });
        });
        
        // 分类筛选
        categoryItems.forEach(item => {
            item.addEventListener('click', () => {
                // 移除其他分类的active类
                categoryItems.forEach(i => i.classList.remove('active'));
                // 添加当前分类的active类
                item.classList.add('active');
                
                // 更新筛选条件
                currentFilters.category = item.textContent;
            });
        });
        
        // 价格滑块
        priceSlider.addEventListener('input', () => {
            sliderValue.textContent = `${priceSlider.value}元`;
            currentFilters.priceRange.max = parseInt(priceSlider.value);
        });
        
        // 价格输入框
        minPrice.addEventListener('change', () => {
            if (minPrice.value) {
                currentFilters.priceRange.min = parseInt(minPrice.value);
                // 如果最小价格大于最大价格，调整滑块
                if (currentFilters.priceRange.min > currentFilters.priceRange.max) {
                    currentFilters.priceRange.max = currentFilters.priceRange.min;
                    priceSlider.value = currentFilters.priceRange.max;
                    sliderValue.textContent = `${currentFilters.priceRange.max}元`;
                }
            }
        });
        
        maxPrice.addEventListener('change', () => {
            if (maxPrice.value) {
                currentFilters.priceRange.max = parseInt(maxPrice.value);
                // 如果最大价格小于最小价格，调整最小价格
                if (currentFilters.priceRange.max < currentFilters.priceRange.min) {
                    currentFilters.priceRange.min = currentFilters.priceRange.max;
                    minPrice.value = currentFilters.priceRange.min;
                }
                // 更新滑块
                priceSlider.value = currentFilters.priceRange.max;
                sliderValue.textContent = `${currentFilters.priceRange.max}元`;
            }
        });
        
        // 时间筛选
        document.querySelectorAll('input[name="time-filter"]').forEach(radio => {
            radio.addEventListener('change', () => {
                currentFilters.time = radio.value;
            });
        });
        
        // 促销类型筛选
        typeTags.forEach(tag => {
            tag.addEventListener('click', () => {
                // 全部类型特殊处理
                if (tag.textContent === '全部类型') {
                    typeTags.forEach(t => t.classList.remove('active'));
                    tag.classList.add('active');
                    currentFilters.types = ['全部类型'];
                } else {
                    // 如果点击其他类型，先移除"全部类型"的选中状态
                    const allTypeTag = Array.from(typeTags).find(t => t.textContent === '全部类型');
                    if (allTypeTag.classList.contains('active')) {
                        allTypeTag.classList.remove('active');
                        currentFilters.types = [];
                    }
                    
                    // 切换当前类型的选中状态
                    tag.classList.toggle('active');
                    
                    // 更新筛选条件
                    if (tag.classList.contains('active')) {
                        currentFilters.types.push(tag.textContent);
                    } else {
                        currentFilters.types = currentFilters.types.filter(
                            type => type !== tag.textContent
                        );
                        
                        // 如果没有选中任何类型，默认选中全部类型
                        if (currentFilters.types.length === 0) {
                            allTypeTag.classList.add('active');
                            currentFilters.types = ['全部类型'];
                        }
                    }
                }
            });
        });
        
        // 重置筛选
        resetFilterBtn.addEventListener('click', () => {
            // 重置分类
            categoryItems.forEach((item, index) => {
                item.classList.toggle('active', index === 0);
            });
            
            // 重置价格
            priceSlider.value = 500;
            sliderValue.textContent = '500元';
            minPrice.value = '';
            maxPrice.value = '';
            
            // 重置时间
            document.querySelector('input[name="time-filter"][value="all"]').checked = true;
            
            // 重置促销类型
            typeTags.forEach((tag, index) => {
                tag.classList.toggle('active', index === 0);
            });
            
            // 重置筛选条件
            currentFilters = {
                category: '全部',
                priceRange: { min: 0, max: 1000 },
                time: 'all',
                types: ['全部类型']
            };
            
            showToast('已重置筛选条件');
        });
        
        // 应用筛选
        applyFilterBtn.addEventListener('click', () => {
            // 生成筛选标签
            updateFilterTags();
            
            // 模拟筛选结果
            filterPromotions();
            
            showToast('筛选已应用');
        });
        
        // 更新筛选标签
        function updateFilterTags() {
            // 清空现有标签（保留清除全部按钮）
            const clearBtn = document.getElementById('clearAllFilters');
            while (filterTagsContainer.firstChild) {
                filterTagsContainer.removeChild(filterTagsContainer.firstChild);
            }
            filterTagsContainer.appendChild(clearBtn);
            
            // 添加分类标签
            if (currentFilters.category !== '全部') {
                addFilterTag('分类', currentFilters.category, 'category');
            }
            
            // 添加价格标签
            if (currentFilters.priceRange.min > 0 || currentFilters.priceRange.max < 1000) {
                const priceText = `${currentFilters.priceRange.min || 0} - ${currentFilters.priceRange.max || '∞'}元`;
                addFilterTag('价格', priceText, 'price');
            }
            
            // 添加时间标签
            const timeMap = {
                'all': '全部时间',
                'today': '今天',
                'week': '近7天',
                'month': '近30天',
                'upcoming': '即将开始',
                'custom': '自定义时间'
            };
            if (currentFilters.time !== 'all') {
                addFilterTag('时间', timeMap[currentFilters.time], 'time');
            }
            
            // 添加促销类型标签
            currentFilters.types.forEach(type => {
                if (type !== '全部类型') {
                    addFilterTag('类型', type, 'type', type);
                }
            });
            
            // 显示/隐藏清除全部按钮
            clearAllFiltersBtn.style.display = 
                filterTagsContainer.children.length > 1 ? 'flex' : 'none';
        }
        
        // 添加筛选标签
        function addFilterTag(type, text, filterType, value = null) {
            const tag = document.createElement('div');
            tag.className = 'filter-tag';
            tag.setAttribute('data-type', filterType);
            if (value) tag.setAttribute('data-value', value);
            
            tag.innerHTML = `
                <span>${text}</span>
                <button class="remove-tag">×</button>
            `;
            
            // 移除标签事件
            tag.querySelector('.remove-tag').addEventListener('click', () => {
                tag.remove();
                
                // 根据标签类型更新筛选条件
                if (filterType === 'category') {
                    currentFilters.category = '全部';
                    categoryItems.forEach(item => {
                        item.classList.toggle('active', item.textContent === '全部');
                    });
                } else if (filterType === 'price') {
                    currentFilters.priceRange = { min: 0, max: 1000 };
                    priceSlider.value = 500;
                    sliderValue.textContent = '500元';
                    minPrice.value = '';
                    maxPrice.value = '';
                } else if (filterType === 'time') {
                    currentFilters.time = 'all';
                    document.querySelector('input[name="time-filter"][value="all"]').checked = true;
                } else if (filterType === 'type' && value) {
                    currentFilters.types = currentFilters.types.filter(t => t !== value);
                    
                    // 如果没有选中任何类型，默认选中全部类型
                    if (currentFilters.types.length === 0) {
                        currentFilters.types = ['全部类型'];
                        typeTags.forEach(tag => {
                            tag.classList.toggle('active', tag.textContent === '全部类型');
                        });
                    } else {
                        // 更新对应类型标签的选中状态
                        typeTags.forEach(tag => {
                            if (tag.textContent === value) {
                                tag.classList.remove('active');
                            }
                        });
                    }
                }
                
                // 重新应用筛选
                filterPromotions();
                
                // 如果没有标签了，隐藏清除全部按钮
                if (filterTagsContainer.children.length <= 1) {
                    clearAllFiltersBtn.style.display = 'none';
                }
                
                showToast('已移除筛选条件');
            });
            
            filterTagsContainer.insertBefore(tag, clearAllFiltersBtn);
        }
        
        // 清除全部筛选
        clearAllFiltersBtn.addEventListener('click', () => {
            resetFilterBtn.click();
            updateFilterTags();
            filterPromotions();
        });
        
        // 筛选促销列表
        function filterPromotions() {
            // 这里只是模拟筛选效果，实际项目中应该根据筛选条件从服务器请求数据
            const items = promotionsList.querySelectorAll('.promotion-item');
            
            // 显示加载状态
            promotionsList.innerHTML = '<div class="d-flex justify-content-center p-5"><div class="spinner-border text-primary" role="status"><span class="visually-hidden">Loading...</span></div></div>';
            
            // 模拟网络请求延迟
            setTimeout(() => {
                // 恢复列表（实际项目中应该根据筛选条件显示对应项）
                promotionsList.innerHTML = '';
                items.forEach(item => {
                    promotionsList.appendChild(item);
                });
                
                // 如果没有筛选结果，显示空状态
                // if (filteredItems.length === 0) {
                //     showEmptyState();
                // }
            }, 800);
        }
        
        // 显示空状态
        function showEmptyState() {
            promotionsList.innerHTML = `
                <div class="empty-state">
                    <div class="empty-icon">
                        <i class="fas fa-search"></i>
                    </div>
                    <div class="empty-text">没有找到符合条件的促销</div>
                    <button class="empty-action" id="adjustFilters">调整筛选条件</button>
                </div>
            `;
            
            document.getElementById('adjustFilters').addEventListener('click', () => {
                resetFilterBtn.click();
                updateFilterTags();
                filterPromotions();
            });
        }
        
        // 点赞功能
        document.addEventListener('click', (e) => {
            if (e.target.closest('.like-btn')) {
                const likeBtn = e.target.closest('.like-btn');
                const icon = likeBtn.querySelector('i');
                const countElement = likeBtn.querySelector('span');
                let count = parseInt(countElement.textContent);
                
                if (icon.classList.contains('far')) {
                    // 点赞
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    likeBtn.classList.add('liked');
                    countElement.textContent = count + 1;
                    showToast('点赞成功');
                } else {
                    // 取消点赞
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    likeBtn.classList.remove('liked');
                    countElement.textContent = count - 1;
                    showToast('已取消点赞');
                }
            }
            
            // 评论功能
            if (e.target.closest('.comment-btn')) {
                const commentBtn = e.target.closest('.comment-btn');
                const promotionItem = commentBtn.closest('.promotion-item');
                const userName = promotionItem.querySelector('.user-name').textContent;
                showToast(`查看${userName}的促销评论`);
            }
            
            // 分享功能
            if (e.target.closest('.share-btn')) {
                showToast('分享链接已复制');
            }
            
            // 收藏功能
            if (e.target.closest('.save-btn')) {
                const saveBtn = e.target.closest('.save-btn');
                const icon = saveBtn.querySelector('i');
                
                if (icon.classList.contains('far')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    showToast('收藏成功');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    showToast('已取消收藏');
                }
            }
        });
        
        // 加载更多
        loadMoreBtn.addEventListener('click', function() {
            // 显示加载中状态
            this.innerHTML = '<span>加载中</span><i class="fas fa-spinner"></i>';
            this.classList.add('loading');
            
            // 模拟加载延迟
            setTimeout(() => {
                // 创建新的促销项
                const newItems = createPromotionItems(3);
                
                // 添加到列表
                newItems.forEach(item => {
                    promotionsList.appendChild(item);
                });
                
                // 恢复按钮状态
                this.innerHTML = '<span>加载更多</span><i class="fas fa-chevron-down"></i>';
                this.classList.remove('loading');
                
                showToast('已加载更多促销');
            }, 1500);
        });
        
        // 创建促销项
        function createPromotionItems(count) {
            const items = [];
            const stores = ['生鲜食品超市', '母婴用品店', '文具书店', '宠物用品店', '运动健身馆'];
            const promotions = [
                '会员日特惠，所有商品8折优惠，更有专属赠品等你来拿！',
                '新品上市，尝鲜价仅需99元，购买即送精美礼品一份。',
                '限时秒杀！每天10点、15点、20点三个时段，爆款商品低至1元！',
                '满100减20，满200减50，多买多省，优惠不封顶！',
                '组合套餐特惠，原价299元，现价199元，立省100元！'
            ];
            const tags = [
                ['限时折扣', '会员专享'],
                ['新品特惠', '限量'],
                ['秒杀', '1元起'],
                ['满减', '多买多省'],
                ['组合优惠', '立省']
            ];
            
            for (let i = 0; i < count; i++) {
                const random = Math.floor(Math.random() * 5);
                const imageCount = Math.floor(Math.random() * 5); // 0-4张图片
                const storeIndex = Math.floor(Math.random() * stores.length);
                const likeCount = Math.floor(Math.random() * 500);
                const commentCount = Math.floor(Math.random() * 100);
                const daysAgo = Math.floor(Math.random() * 7) + 1;
                
                // 创建促销项
                const item = document.createElement('div');
                item.className = 'promotion-item';
                
                // 构建图片容器
                let imageContainer = '';
                if (imageCount === 0) {
                    imageContainer = `
                        <div class="images-container">
                            <div class="no-image">
                                <i class="fas fa-image fa-2x"></i>
                            </div>
                        </div>
                    `;
                } else if (imageCount === 1) {
                    imageContainer = `
                        <div class="images-container">
                            <div class="single-image image-item">
                                <img src="https://picsum.photos/id/${30 + i}/800/600" alt="促销图片">
                            </div>
                        </div>
                    `;
                } else if (imageCount === 2) {
                    imageContainer = `
                        <div class="images-container">
                            <div class="two-images">
                                <div class="image-item">
                                    <img src="https://picsum.photos/id/${40 + i}/400/400" alt="促销图片">
                                </div>
                                <div class="image-item">
                                    <img src="https://picsum.photos/id/${50 + i}/400/400" alt="促销图片">
                                </div>
                            </div>
                        </div>
                    `;
                } else if (imageCount === 3) {
                    imageContainer = `
                        <div class="images-container">
                            <div class="three-images">
                                <div class="image-item">
                                    <img src="https://picsum.photos/id/${60 + i}/400/800" alt="促销图片">
                                </div>
                                <div class="image-item">
                                    <img src="https://picsum.photos/id/${70 + i}/400/400" alt="促销图片">
                                </div>
                                <div class="image-item">
                                    <img src="https://picsum.photos/id/${80 + i}/400/400" alt="促销图片">
                                </div>
                            </div>
                        </div>
                    `;
                } else { // 4张及以上
                    imageContainer = `
                        <div class="images-container">
                            <div class="multiple-images">
                                <div class="image-item">
                                    <img src="https://picsum.photos/id/${90 + i}/300/300" alt="促销图片">
                                </div>
                                <div class="image-item">
                                    <img src="https://picsum.photos/id/${100 + i}/300/300" alt="促销图片">
                                </div>
                                <div class="image-item">
                                    <img src="https://picsum.photos/id/${110 + i}/300/300" alt="促销图片">
                                    <span class="image-count">+${imageCount - 3}</span>
                                </div>
                            </div>
                        </div>
                    `;
                }
                
                // 构建标签
                let tagHtml = '';
                tags[random].forEach(tag => {
                    const tagClass = tag.includes('折') || tag.includes('减') || tag.includes('省') || tag.includes('元') 
                        ? 'tag-discount' 
                        : 'tag-time';
                    tagHtml += `<span class="promotion-tag ${tagClass}">${tag}</span>`;
                });
                
                // 随机是否显示倒计时
                const showCountdown = Math.random() > 0.5;
                let countdownHtml = '';
                if (showCountdown) {
                    const hours = Math.floor(Math.random() * 24);
                    const minutes = Math.floor(Math.random() * 60);
                    countdownHtml = `
                        <div class="countdown">
                            <i class="far fa-clock"></i>
                            <span>剩余时间:</span>
                            <span class="countdown-value">0</span>
                            <span>天</span>
                            <span class="countdown-value">${hours}</span>
                            <span>时</span>
                            <span class="countdown-value">${minutes}</span>
                            <span>分</span>
                        </div>
                    `;
                }
                
                // 组装促销项HTML
                item.innerHTML = `
                    <div class="promotion-header">
                        <div class="user-avatar">
                            <img src="https://picsum.photos/id/${10 + i}/100/100" alt="用户头像">
                        </div>
                        <div class="user-info">
                            <div class="user-name">${stores[storeIndex]}</div>
                            <div class="post-time">${daysAgo}天前</div>
                        </div>
                    </div>
                    <div class="promotion-content">
                        <div class="promotion-text">
                            ${promotions[random]}
                        </div>
                        
                        ${imageContainer}
                        
                        <div class="promotion-tags">
                            ${tagHtml}
                        </div>
                        
                        ${countdownHtml}
                    </div>
                    <div class="promotion-actions">
                        <button class="action-btn like-btn">
                            <i class="far fa-heart"></i>
                            <span>${likeCount}</span>
                        </button>
                        <button class="action-btn comment-btn">
                            <i class="far fa-comment"></i>
                            <span>${commentCount}</span>
                        </button>
                        <button class="action-btn share-btn">
                            <i class="far fa-share-alt"></i>
                            <span>分享</span>
                        </button>
                        <button class="action-btn save-btn">
                            <i class="far fa-bookmark"></i>
                            <span>收藏</span>
                        </button>
                    </div>
                `;
                
                items.push(item);
            }
            
            return items;
        }
        
        // 提示消息功能
        function showToast(message) {
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
        
        // 倒计时更新
        function updateCountdowns() {
            document.querySelectorAll('.countdown').forEach(countdown => {
                const values = countdown.querySelectorAll('.countdown-value');
                if (values.length >= 3) {
                    let days = parseInt(values[0].textContent);
                    let hours = parseInt(values[1].textContent);
                    let minutes = parseInt(values[2].textContent);
                    
                    minutes--;
                    if (minutes < 0) {
                        minutes = 59;
                        hours--;
                        if (hours < 0) {
                            hours = 23;
                            days--;
                            if (days < 0) {
                                days = 0;
                                hours = 0;
                                minutes = 0;
                            }
                        }
                    }
                    
                    values[0].textContent = days;
                    values[1].textContent = hours;
                    values[2].textContent = minutes;
                }
            });
        }
        
        // 每分钟更新一次倒计时
        setInterval(updateCountdowns, 60000);
    </script>
</body>
</html>

